package com.surveillance.tests;

import java.util.Date;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.surveillance.BO.BOLayer;
import com.surveillance.BO.MatiereBO;
import com.surveillance.entities.Etudiant;
import com.surveillance.entities.Examen;
import com.surveillance.entities.Matiere;
import com.surveillance.entities.Salle;

public class testExamen {
	public static void main(String[] args) {
		ApplicationContext appContext = new ClassPathXmlApplicationContext(
				"beanLocations.xml");
		@SuppressWarnings("unchecked")
		BOLayer<Examen> exaBO = (BOLayer<Examen>) appContext.getBean("ExamenBO");
		BOLayer<Matiere> matiereBO = (BOLayer<Matiere>) appContext.getBean("MatiereBO");
		/*Matiere matiere =new Matiere();
		matiere.setIntitule("math");
		matiere.setNiveau(1);
		matiere.setIsMedecine(false);
		matiere.setSemestre(1);
		matiereBO.save(matiere);*/
		System.out.println(((MatiereBO)matiereBO).getMatiersByNiveauSpecSem(1,false));
		
	}
}
